import service from '@/utils/request'

export const createDmSchema = (data) => {
  return service({
    url: '/dmSchema/createDmSchema',
    method: 'post',
    data
  })
}

export const deleteDmSchema = (data) => {
  return service({
    url: '/dmSchema/deleteDmSchema',
    method: 'delete',
    data
  })
}

export const deleteDmSchemaByIds = (data) => {
  return service({
    url: '/dmSchema/deleteDmSchemaByIds',
    method: 'delete',
    data
  })
}

export const updateDmSchema = (data) => {
  return service({
    url: '/dmSchema/updateDmSchema',
    method: 'put',
    data
  })
}

export const findDmSchema = (params) => {
  return service({
    url: '/dmSchema/findDmSchema',
    method: 'get',
    params
  })
}

export const getDmSchemaList = (params) => {
  return service({
    url: '/dmSchema/getDmSchemaList',
    method: 'get',
    params
  })
}

export const getAllDmSchemas = (params) => {
  return service({
    url: '/dmSchema/getAllDmSchemas',
    method: 'get',
    params
  })
}

export const getDmSchema = (data) => {
  return service({
    url: '/dmSchema/getDmSchema',
    method: 'post',
    data
  })
}


export const initDmSchema = () => {
  return service({
    url: '/dmSchema/initDmSchema',
    method: 'get',
  })
}
